cargo-build-flag
authorDebian LibreOffice Maintainers <debian-openoffice@lists.debian.org>
Wed, 28 Jan 2026 20:03:25 +0000 (21:03 +0100)
committerRene Engelhard <rene@debian.org>
Wed, 28 Jan 2026 20:03:25 +0000 (21:03 +0100)
Gbp-Pq: Name cargo-build-flag.diff

rust_uno/CustomTarget_cargo.mk

index 5f933906b01d2029435489699edbc5c62fa00f16..0fd6b49d04a3cf89da315136deaec4d4397d121f 100644 (file)
@@ -13,7 +13,7 @@ $(eval $(call gb_CustomTarget_CustomTarget,rust_uno/cargo))
 $(call gb_CustomTarget_get_target,rust_uno/cargo): \
         $(call gb_Library_get_target,rust_uno-cpp) \
         $(gb_CustomTarget_workdir)/rust_uno/rustmaker/cpp
-       cd $(SRCDIR)/rust_uno && export DEB_CARGO_CRATE=rust-uno_$(shell grep version rust_uno/Cargo.toml | awk '{ print $$3 }' | sed -e s/\"//g); cargo build $(if $(verbose),--verbose,) --release
+       cd $(SRCDIR)/rust_uno && export DEB_CARGO_CRATE=rust-uno_$(shell grep version rust_uno/Cargo.toml | awk '{ print $$3 }' | sed -e s/\"//g); cargo build $(if $(verbose),--verbose,) $(CARGO_FLAGS)
 
 #TODO: Add to the general pattern rule from solenv/gbuild/CustomTarget.mk, instead of having to
 # repeat its recipe here: